Welcome Guest | Sign in | Register
Advanced Java - Java Programming Interview Questions and Answers | LucentBlackBoard | LucentBlackBoard.com

Home > Technical Interviews > Computer Science & Engineering > Java Programming > Advanced Java Questions and Answers

66. What is the relationship between the Canvas class and the Graphics class?

A Canvas object provides access to a Graphics object via its paint() method.

67. What are the high-level thread states?

The high-level thread states are ready, running, waiting, and dead.

68. What value does read() return when it has reached the end of a file?

The read() method returns -1 when it has reached the end of a file.

69. Can a Byte object be cast to a double value?

No. An object cannot be cast to a primitive value.

70. What is the difference between a static and a non-static inner class?

A non-static inner class may have object instances that are associated with instances of the class's outer class.


A static inner class does not have any object instances.




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved © 2012-2015 SoftLucent.